﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.Runtime.Serialization;

namespace ServiceDeskInterop
{

    [DataContract]
    public enum RoleDTO
    {
        [EnumMember]
        Operator,
        [EnumMember]
        Admin
    }

    [DataContract]
    public class UserDTO
    {
        public UserDTO()
        {
        }
        public UserDTO(Guid guid, string login, RoleDTO role)
        {
            Guid = guid;
            Login = login;
            Role = role;
        }
        [DataMember]
        public Guid Guid { get; set; }
        [DataMember]
        public string Login { get; set; }
        [DataMember]
        public RoleDTO Role { get; set; }

    }
}
